package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Tcp extends AbstractMethod {
    private static final String name = "tcp";
    /**
    Send JSON alert data to a specified address over TCP.
    **/
    /**
    通过TCP将JSON警报数据发送到指定地址。
    **/
    public Tcp(String address) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new SingleQuotesArg(address));


    }
}
